package com.returnsoft.softphone.service;

import java.util.List;

import javax.ejb.Remote;

import com.returnsoft.softphone.dto.AgentDto;
import com.returnsoft.softphone.exception.CCenterExcepcion;

@Remote
public interface AgentInterface {

	public AgentDto findAgentById(Integer agentId) throws CCenterExcepcion;

	public AgentDto findAgent(Integer userId) throws CCenterExcepcion;

	public AgentDto doLogin(Integer userId, String ipHost)
			throws CCenterExcepcion;

	public AgentDto changeState(Integer agentId, String ipHost, String stateCode)
			throws CCenterExcepcion;

	public AgentDto addAgent(AgentDto agentDto) throws CCenterExcepcion;

	// public AgentDto findAgentWithPeer(Integer userId) throws
	// CCenterExcepcion;

	public List<AgentDto> findAgents(List<Integer> campaignsId,
			List<Integer> supervisorsId, String code, String username,
			String documentNumber, String name, Boolean autoready,
			Boolean isActive, Boolean supervisorNull, Boolean campaignNull)
			throws CCenterExcepcion;
	
	public String findCallNumber(String callId, String pbxDatabase) throws CCenterExcepcion;

}
